#!/usr/bin/env python
import sys
import class_set
import helper

class FriendListReducer(helper.ReducerHelper):
    def processor(self, key, lst):
        if len(lst) > 1:
            left, right = self.split(key)
            self.allocator(left, right)

def main():
    fr = FriendListReducer()
    fr.reducer()

if __name__ == '__main__':
    main()
